package com.nbsaas.boot.product.data.entity;

import com.nbsaas.boot.code.annotation.*;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.Comment;

@Comment("商品规格模型")
@Data
@FormAnnotation(title = "商品规格模型", model = "商品规格模型")
@Entity
@Table(name = "nb_product_model")
public class ProductModel extends AbstractEntity {

    @Comment("编码")
    @FormField(title = "编码", grid = true)
    private String code;

    @Comment("名称")
    @FormField(title = "名称", grid = true, required = true)
    private String name;

    @Comment("备注")
    @FormField(title = "备注", type = InputType.textarea)
    private String note;
} 